package com.kgc.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Timestamp;
import java.util.Date;

public class Tousu {
    private Integer id;

    private String content;

    private Integer userId;
    private String userName;

    private Integer status;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Timestamp time;

    private String result;

    public Tousu() {
    }

    public Tousu(String content, Integer userId, Timestamp time) {
        this.content = content;
        this.userId = userId;
        this.time = time;
    }

    public Tousu(Integer id, String content, Integer status, Timestamp time, String result) {
        this.id = id;
        this.content = content;
        this.status = status;
        this.time = time;
        this.result = result;
    }

    public Tousu(Integer id, String content, String userName, Integer status, Timestamp time, String result) {
        this.id = id;
        this.content = content;
        this.userName = userName;
        this.status = status;
        this.time = time;
        this.result = result;
    }

    public Tousu(String content, Integer userId, Integer status, Timestamp time, String result) {
        this.content = content;
        this.userId = userId;
        this.status = status;
        this.time = time;
        this.result = result;
    }

    public Tousu(Integer id, String content, Integer userId, Integer status, Timestamp time, String result) {
        this.id = id;
        this.content = content;
        this.userId = userId;
        this.status = status;
        this.time = time;
        this.result = result;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public String getResult() {
        return result;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setResult(String result) {
        this.result = result == null ? null : result.trim();
    }
}